projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
875e9e4
)
rewrite resolv.conf after any interface state change (not just up)
author
Felix Fietkau
<
[email protected]
>
Thu, 13 Dec 2012 16:13:43 +0000
(17:13 +0100)
committer
Felix Fietkau
<
[email protected]
>
Thu, 13 Dec 2012 16:13:43 +0000
(17:13 +0100)
Signed-off-by: Felix Fietkau <
[email protected]
>
interface.c
patch
|
blob
|
history
diff --git
a/interface.c
b/interface.c
index 245622766b4e14a33e22601b049df759adfb8af4..43d13965eddbc1b361d391ebcca0957969cf3ea3 100644
(file)
--- a/
interface.c
+++ b/
interface.c
@@
-393,7
+393,6
@@
interface_proto_cb(struct interface_proto_state *state, enum interface_proto_eve
iface->state = IFS_UP;
iface->start_time = system_get_rtime();
interface_event(iface, IFEV_UP);
- interface_write_resolv_conf();
netifd_log_message(L_NOTICE, "Interface '%s' is now up\n", iface->name);
break;
case IFPEV_DOWN:
@@
-415,6
+414,8
@@
interface_proto_cb(struct interface_proto_state *state, enum interface_proto_eve
iface->state = IFS_SETUP;
break;
}
+
+ interface_write_resolv_conf();
}
void interface_set_proto_state(struct interface *iface, struct interface_proto_state *state)